package com.dengyafei.mapper;

import com.dengyafei.bean.DeliveryEntity;
import com.dengyafei.bean.DeliveryEntityExample;

import java.util.List;

import com.dengyafei.domin.dto.DeliveryNumberHidDTO;
import com.dengyafei.domin.dto.DeliveryNumberPositionDTO;
import com.dengyafei.domin.dto.DeliveryPidDTO;
import com.dengyafei.domin.dto.DeliveryResumeDTO;
import jdk.nashorn.internal.runtime.linker.LinkerCallSite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 邓亚非
 */
@Mapper
public interface DeliveryEntityMapper {
    int countByExample(DeliveryEntityExample example);

    int deleteByExample(DeliveryEntityExample example);

    int deleteByPrimaryKey(Integer did);

    int insert(DeliveryEntity record);

    int insertSelective(DeliveryEntity record);

    List<DeliveryEntity> selectByExample(DeliveryEntityExample example);

    DeliveryEntity selectByPrimaryKey(Integer did);

    int updateByExampleSelective(@Param("record") DeliveryEntity record, @Param("example") DeliveryEntityExample example);

    int updateByExample(@Param("record") DeliveryEntity record, @Param("example") DeliveryEntityExample example);

    int updateByPrimaryKeySelective(DeliveryEntity record);

    int updateByPrimaryKey(DeliveryEntity record);

    Integer updateStatus(Integer did, Integer status);

    Integer insertDelivery(DeliveryResumeDTO deliveryResumeDTO);

    DeliveryEntity queryByPidAndGid(Integer pid, Integer gid);

    List<DeliveryNumberPositionDTO> queryDeliveryNumberPosition();

    List<Integer> queryNumberHid();

    List<DeliveryNumberHidDTO> queryNumbers();

}